package com.hwua.service;

import com.hwua.entity.ProductCategory;

import java.util.List;

public interface IProductService {
    /**
     * 商品分类抬头
     * @return
     * @throws Exception
     */
    public List<ProductCategory> queryList() throws Exception;

    /**
     * 总分类所含子分类个数
     * @param id
     * @return
     * @throws Exception
     */
    public int getCount(int id) throws Exception;

    /**
     * 查询二级分类
     * @return
     * @throws Exception
     */
    public List<ProductCategory> query() throws Exception;

    /**
     * 根据id查询二级目录
     * @param parent_id
     * @return
     * @throws Exception
     */
    public List<ProductCategory> queryByID(int parent_id) throws Exception ;

    /**
     * 根据商品分类的id查找
     * @param id
     * @return
     * @throws Exception
     */
    public ProductCategory queryBySelfID(int id) throws Exception;
}
